<template>
  <div class="admin-panel">
    <el-container>
      <el-aside width="200px">
        <el-menu 
          :default-active="$route.path" 
          router 
          class="admin-menu"
          background-color="#001529"
          text-color="#fff"
          active-text-color="#ffd04b">
          <el-menu-item index="/admin/student">
            <el-icon><User /></el-icon>
            <span>学生管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/teacher">
            <el-icon><UserFilled /></el-icon>
            <span>教师管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/course">
            <el-icon><Reading /></el-icon>
            <span>课程管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/system">
            <el-icon><Setting /></el-icon>
            <span>系统设置</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
// 无需添加其他逻辑
</script>

<style scoped>
.admin-panel {
  height: 100%;
}

.el-container {
  height: 100%;
}

.el-aside {
  background-color: #001529;
}

.admin-menu {
  height: 100%;
  border-right: none;
}

.el-menu-item span {
  margin-left: 8px;
}
</style> 